package com.ruoyi;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.io.IOException;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@Slf4j
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class EveApplication {
    public static void main(String[] args) {
        SpringApplication.run(EveApplication.class, args);
        try {
            Runtime.getRuntime().exec(new String[]{"cmd", "/c", "start","http://127.0.0.1:8888/page/index"});
        } catch (IOException e) {
            e.printStackTrace();
            log.warn("打开客户端主页失败", e);
        }
    }
}
